import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
import App from '../App'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'app',
      redirect:'introduce',
      component: App,
      children:[
        {
          path: 'introduce',
          name: 'introduce',
          component: _import('introduce'),
          meta: {
            title: '精选专题'
          }
        },
        {
          path: 'recommend',
          name: 'recommend',
          component: _import('recommend'),
          meta: {
            title: '精选专题'
          }
        },
        {
          path: 'recomclass',
          name: 'recomclass',
          component: _import('recomclass'),
          meta: {
            title: '精选专题'
          }
        }
      ]
    }
  ]
})
